package com.zhw.mapper;

import com.zhw.pojo.entry.CustomerLinkMan;
import com.zhw.pojo.vo.LinkManVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface LinkManMapper {


    List<LinkManVO> getLinkMan(CustomerLinkMan customerLinkMan);

    @Select("select * from customer_linkman where id=#{id}")
    CustomerLinkMan getLinkManByID(Integer id);


    void save(CustomerLinkMan customerLinkMan);


    void update(CustomerLinkMan customerLinkMan);

    @Delete("delete from customer_linkman where id=#{id}")
    void deleteByID(Integer id);
}
